<div class="settings-option">
	<h4>登录和注册</h4>
	<div>
		<label for="user-keys-login">用户登录方式</label>
		<select id="user-keys-login" name="user.keys.login" class="form-control">
			<foreach data="$login as $key => $value">
				<option value="{$key}"{config('user.keys.login') == $key ? ' selected' : ''}>
					{$value}
				</option>
			</foreach>
		</select>
	</div>
	<div>
		{!$key = 'user.register.enable'}
		<label for="user-register-enable">允许新用户注册</label>
		<span>
			<label class="radio-inline">
				<input type="radio" id="user-register-enable" name="{$key}" value="true"{config($key) ? ' checked' : ''}> 是
			</label>
			<label class="radio-inline">
				<input type="radio" name="{$key}" value="false"{config($key) == false ? ' checked' : ''}> 否
			</label>
		</span>
	</div>
	<div>
		{!$key = 'user.register.verify'}
		<label>注册验证码</label>
		<span>
			<label class="radio-inline{$gdSvr == false ? ' disabled' : ''}" title="{$gdSvr == false ? $gdWarning : ''}">
				<input type="radio" name="{$key}" value="vcode"{config($key) == 'vcode' ? ' checked' : ''}> 图片验证码
			</label>
			<label class="radio-inline{$mailSvr == false ? ' disabled' : ''}" title="{$mailSvr == false ? $mailWarning : ''}">
				<input type="radio" name="{$key}" value="email"{config($key) == 'email' ? ' checked' : ''}> 邮件验证码
			</label>
			<label class="radio-inline">
				<input type="radio" name="{$key}" value="false"{config($key) == false ? ' checked' : ''}> 无
			</label>
		</span>
	</div>
	<div>
		{!$key = 'user.password.recoverEmail'}
		<label>找回密码</label>
		<span>
			<label class="radio-inline{$mailSvr == false ? ' disabled' : ''}" title="{$mailSvr == false ? $mailWarning : ''}">
				<input type="radio" name="{$key}" value="vcode"{config($key) == 'vcode' ? ' checked' : ''}> 发送验证码
			</label>
			<label class="radio-inline{$mailSvr == false ? ' disabled' : ''}" title="{$mailSvr == false ? $mailWarning : ''}">
				<input type="radio" name="{$key}" value="link"{config($key) == 'link' ? ' checked' : ''}> 发送重置链接
			</label>
			<label class="radio-inline">
				<input type="radio" name="{$key}" value="false"{config($key) == false ? ' checked' : ''}> 关闭此功能
			</label>
		</span>
	</div>
	<p class="settings-desc">
		要发送邮件，你必须首先<a href="?content=common#smtp">设置邮件服务器</a>。
	</p>
</div>
<div class="settings-option">
	<h4>用户名和密码</h4>
	<div>
		<label for="user-name-min">用户名最小长度</label>
		<input type="number" class="form-control" id="user-name-min" name="user.name.minLength" value="{config('user.name.minLength')}" placeholder="用户名不得小于设置值">
	</div>
	<div>
		<label for="user-name-max">用户名最大长度</label>
		<input type="number" class="form-control" id="user-name-max" name="user.name.maxLength" value="{config('user.name.maxLength')}" placeholder="用户名不得大于于设置值">
	</div>
	<div>
		<label for="user-password-min">密码最小长度</label>
		<input type="number" class="form-control" id="user-password-min" name="user.password.minLength" value="{config('user.password.minLength')}" placeholder="用户名不得小于设置值">
	</div>
	<div>
		<label for="user-password-max">密码最大长度</label>
		<input type="number" class="form-control" id="user-password-max" name="user.password.maxLength" value="{config('user.password.maxLength')}" placeholder="用户名不得大于于设置值">
	</div>
</div>